Skip to content

Updated Horror Toy Factory with new Mob_Skill_DB Scheme.#2677

Open
Zarbony wants to merge 10 commits into
HerculesWS:masterfrom
Zarbony:Horror_Toy_Factory
Open

Updated Horror Toy Factory with new Mob_Skill_DB Scheme.#2677
Zarbony wants to merge 10 commits into
HerculesWS:masterfrom
Zarbony:Horror_Toy_Factory

Conversation

@Zarbony

@Zarbony Zarbony commented Mar 31, 2020

Copy link
Copy Markdown
Contributor

Pull Request Prelude

Changes Proposed

Just Use raw data from #1539 and updated setpcblock() script command with work from @Kenpachi2k13 to use it now.
Updated the Mob_Skill_DB.conf to the new Scheme.
Updated the Script.

NPC Script will work after Implement the Update for the *pcblock() script command on #2668

ToDO:

  • Add Skill IDs 716 and 719

Issues addressed: Episode 14.2 : Eclage #240 as a part of the Official content list

Just Use raw data from HerculesWS#1539 and updated setpcblock() script command with work from Kenpachi2k13 to use it now.

ToDO:
- Fix setunitdata() to work correctly
- Add Skill IDs 716 and 719
@dastgirp

Copy link
Copy Markdown
Member

Hi,
It seems there are some script error due to which Travis build is failing.

More details here: https://travis-ci.org/github/HerculesWS/Hercules/jobs/669248207?utm_medium=notification&utm_source=github_status

@Kenpachi2k13 Kenpachi2k13 added component:databases Affecting the databases available in the db/ folder component:scripts Affecting the scripts and NPCs mode:renewal For strictly Renewal issues status:code-review Awaiting code review type:enhancement Issue describes an enhancement or feature that should be implemented labels Apr 11, 2020
@Kenpachi2k13 Kenpachi2k13 added this to the Match Official Content milestone Apr 11, 2020

@Emistry Emistry left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ItemDB / MonsterDB

  • I am not sure if the name field could handle more than 24 characters.
  • These new monster/item name doesn't seem like share "similar" prefix for both monster name and card name, sound weird, normally monster name and card name are quite similar to each other with the suffix of "Card".
  • Most of the card effect, look like just using dummy values? Perhaps recheck to avoid any of it are wrong.

Scripts:

  • I am not sure if this is conversion from AEGIS script, it look like custom write, the variables names perhaps could be improve to use better/easier name to understand what its use for?
  • Monster event label - some of those monster event label doesn't do anything, so its okay to remove those event label from them.
  • NPC name sound too common? it look way too easy to clash with other NPC in future if any? Perhaps just add a prefix to them? Ex: use htf_alert#XXX or htf_xmas_alert#XXX instead of alert#XXX.

Just my 2cents...

Comment thread db/re/item_db.conf
Comment on lines +41185 to +41188
Type: 5
Weight: 200
Slots: 1
Loc: 136

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Type: 5
Weight: 200
Slots: 1
Loc: 136
Type: "IT_ARMOR"
Weight: 200
Slots: 1
Loc: "EQP_ACC"

Comment thread db/re/item_db.conf
Comment on lines +41201 to +41206
AegisName: "Hurt_Mind"
Name: "Broken Heart"
Type: 5
Weight: 100
Slots: 1
Loc: 136

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
AegisName: "Hurt_Mind"
Name: "Broken Heart"
Type: 5
Weight: 100
Slots: 1
Loc: 136
AegisName: "Hurt_Mind"
Name: "Hurt Mind"
Type: "IT_ARMOR"
Weight: 100
Slots: 1
Loc: "EQP_ACC"

Comment thread db/re/item_db.conf
Comment on lines +41215 to +41220
AegisName: "KindHeart"
Name: "Gentle Heart"
Type: 5
Weight: 100
Slots: 1
Loc: 136

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
AegisName: "KindHeart"
Name: "Gentle Heart"
Type: 5
Weight: 100
Slots: 1
Loc: 136
AegisName: "KindHeart"
Name: "Kind Heart"
Type: "IT_ARMOR"
Weight: 100
Slots: 1
Loc: "EQP_ACC"

Comment thread db/re/item_db.conf
Comment on lines +41229 to +41234
AegisName: "Evilspirit_Gloves"
Name: "Evilspirit Gloves"
Type: 5
Weight: 100
Slots: 1
Loc: 136

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
AegisName: "Evilspirit_Gloves"
Name: "Evilspirit Gloves"
Type: 5
Weight: 100
Slots: 1
Loc: 136
AegisName: "Evil_Spirit_Gloves"
Name: "Evil Spirit Gloves"
Type: "IT_ARMOR"
Weight: 100
Slots: 1
Loc: "EQP_ACC"

Comment thread db/re/item_db.conf
Comment on lines +85314 to +85316
AegisName: "Hot_Tee"
Name: "Hot Tea"
Type: 0

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
AegisName: "Hot_Tee"
Name: "Hot Tea"
Type: 0
AegisName: "Hot_Tea"
Name: "Hot Tea"
Type: "IT_HEALING"

Comment thread npc/re/instances/horror_toy_factory.txt Outdated
Comment thread npc/re/instances/horror_toy_factory.txt Outdated
Comment thread npc/re/instances/horror_toy_factory.txt Outdated
Comment thread npc/re/merchants/enchan_htf.txt Outdated
Comment thread npc/re/merchants/enchan_htf.txt
Zarbony and others added 5 commits April 12, 2020 10:49
Co-Authored-By: Emistry Haoyan <Emistry@users.noreply.github.com>
Co-Authored-By: Emistry Haoyan <Emistry@users.noreply.github.com>
Co-Authored-By: Emistry Haoyan <Emistry@users.noreply.github.com>
…ror_Toy_Factory

# Conflicts:
#	db/re/item_db.conf
#	db/re/mob_db.conf
#	db/re/mob_skill_db.conf

@Emistry Emistry left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

conflicts aren't resolved.

Comment thread db/re/item_db.conf
Id: 2976
AegisName: "Red_Lantern"
Name: "Red Lantern"
Type: 5

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Type: 5
Type: IT_***

convert to constant, same for other new/updated items.

Comment thread db/re/item_db.conf
Type: 5
Weight: 200
Slots: 1
Loc: 136

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Loc: 136
Loc: EQP_***

convert to constant, same for other new/updated items.

Comment thread db/re/item_db.conf
Name: "Shinee_Opal"
},
{
<<<<<<< HEAD

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

conflict aren't resolved?

Comment thread db/re/mob_db.conf
//2984,TW_TURTLE_GENERAL
//2985,E_MYSTERIOUS_BUG
//2986,J_XMAS_SMOKEY_GIFT
<<<<<<< HEAD

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

conflict aren't resolved?

Comment thread db/re/mob_db.conf
//2992,XM_LUDE
//2993,XM_HYLOZOIST
//2994,XM_MARIONETTE
>>>>>>> b9bca8ceaa551fd9f9c26bea4b4f738ad94ca2d6

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

conflict aren't resolved?

end;

OnTalk_1:
switch (rand(1, 10)) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change into F_Rand(...) to generate the random message?

OnTimer1000:
switch (atoi(strnpcinfo(NPC_NAME_HIDDEN))) {
case 1:
.@idnum001 = rand(4, 8);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this .@idnu001 for? seem like not used anywhere. Or you meant .@item_count instead ?

mes("A stubborn person indeed. Come back next time if you need anything.");
close();
}
.@eq_num = EQI_HEAD_TOP; // Official script sets value to EQI_HEAD_LOW, but gear is EQI_HEAD_TOP in db.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.@eq_num = EQI_HEAD_TOP; // Official script sets value to EQI_HEAD_LOW, but gear is EQI_HEAD_TOP in db.
.@eq_num = getiteminfo(Lush_Rose, ITEMINFO_LOC);

mes("A stubborn person indeed. Come back next time if you need anything.");
close();
}
.@eq_num = EQI_HAND_R;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.@eq_num = EQI_HAND_R;
.@eq_num = getiteminfo(Grand_Cross_, ITEMINFO_LOC);

.@enc_coin = 1;
.@sc_type = 2;
break;
case 2976:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change all these cases into itemID constant

@sinju92

sinju92 commented Mar 27, 2022

Copy link
Copy Markdown

Any Update for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component:databases Affecting the databases available in the db/ folder component:scripts Affecting the scripts and NPCs mode:renewal For strictly Renewal issues status:code-review Awaiting code review type:enhancement Issue describes an enhancement or feature that should be implemented

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants